package com.shujia.java.day2;

import java.util.Scanner;

public class Demo18Continue {
    public static void main(String[] args) {

        /**
         * 统计偶数的和
         *
         */

        int sum = 0;

        for (int i = 1; i <= 10; i++) {

            //当i是奇数的时候跳过
            if (i % 2 == 1) {
                continue;
            }

            sum = sum + i;
        }

        System.out.println("总和：" + sum);


    }
}
